package org.example.service;


import org.example.internalCommon.dto.ResponseResult;
import org.example.remote.ServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceFromMapService {

    @Autowired
    private ServiceClient serviceClient;


    /**
     * 创建服务
     * @param name
     * @return
     */
    public ResponseResult add(String name){

        return serviceClient.add(name);

    }

    public ResponseResult delete(String name) {
        return serviceClient.delete(name);
    }

    public ResponseResult select() {
        return serviceClient.select();
    }
}
